package com.travel.modules.alipay.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.travel.commons.utils.Constant;
import com.travel.modules.alipay.dao.OrderFormDao;
import com.travel.modules.alipay.entity.OrderForm;
import com.travel.modules.alipay.service.OrderFormService;
import com.travel.modules.asset.dao.HotelDao;
import com.travel.modules.asset.dao.RouteDao;
import com.travel.modules.asset.dao.ScenicAreaDao;
import com.travel.modules.asset.entity.Hotel;
import com.travel.modules.asset.entity.Route;
import com.travel.modules.asset.entity.ScenicArea;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("orderFormService")
public class OrderFormServiceImpl extends ServiceImpl<OrderFormDao, OrderForm> implements OrderFormService {
    @Resource
    private OrderFormDao orderFormDao;

    @Resource
    private ScenicAreaDao scenicAreaDao;
    @Resource
    private RouteDao routeDao;
    @Resource
    private HotelDao hotelDao;

    @Override
    public List<OrderForm> getAllOrder2Merchant(Map<String, Object> params) {
        return orderFormDao.getAllOrder2Merchant(params);
    }

    @Override
    public List<OrderForm> getAllOrder23(Map<String, Object> param) {
        return orderFormDao.getAllOrder23(param);
    }

    @Override
    public OrderForm getOneOrder(Long orderId) {
        return orderFormDao.getOneOrder(orderId);
    }

    @Override
    public List<OrderForm> getCompletedOrder2Merchant(Map<String, Object> params) {
        return orderFormDao.getCompletedOrder2Merchant(params);
    }

    @Override
    public List<OrderForm> getUncompletedOrder2Merchant(Map<String, Object> params) {
        return orderFormDao.getUncompletedOrder2Merchant(params);
    }
}
